home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / matrixbullettimefighting.swf / scripts / frame_7 / PlaceObject2_224_546 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-05-08  |  595b  |  32 lines

  1. onClipEvent(enterFrame){
  2.    EO = 0;
  3.    var forvar = 2;
  4.    while(_root.EnemyPlayers + 1 >= forvar)
  5.    {
  6.       if(_root["Energy" add forvar] < 0)
  7.       {
  8.          EO += 1;
  9.       }
  10.       forvar++;
  11.    }
  12.    if(this._currentframe < 140)
  13.    {
  14.       if(_root.Energy1 < 0)
  15.       {
  16.          this.Text = "YOU LOSE";
  17.          tellTarget(this)
  18.          {
  19.             gotoAndPlay(140);
  20.          }
  21.       }
  22.       else if(EO == _root.EnemyPlayers)
  23.       {
  24.          this.Text = "YOU WIN";
  25.          tellTarget(this)
  26.          {
  27.             gotoAndPlay(140);
  28.          }
  29.       }
  30.    }
  31. }
  32.